#include <stdio.h>  
#include <string.h>  
  
int main() {  
    int n, ans = 1;  
    if (scanf("%d", &n));  
    for (int i = n - 1; i > 0; i--)  
        ans = 2 * (ans + i);  
    if (ans == 1)  
        printf("The monkey got %d peach in first day.\n", ans);  
    else  
        printf("The monkey got %d peaches in first day.\n", ans);  
    return 0;  
}  